package com.example.kingdee.sqlTool.common;

import java.util.HashMap;

public class DataMap extends HashMap<String,Object> {
    public void setId(String id){
        put("id",id);
    }

    public String getId(){
        return String.valueOf(get("id"));
    }

    public static DataMap parseOfHashMap(HashMap<String,Object> map){
        DataMap dataMap = new DataMap();
        map.forEach((k,v)->{
            dataMap.put(k,v);
        });
        return dataMap;
    }
}
